package com.hl.service;

import com.hl.mapper.CourseCollectionMapper;
import com.hl.pojo.CourseCollection;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class CourseCollectionServiceImpl implements CourseCollectionService {
    @Autowired
    private CourseCollectionMapper courseCollectionMapper;
    @Override
    public Integer add(CourseCollection courseCollection) {
        return courseCollectionMapper.add(courseCollection);
    }

    @Override
    public Integer update(CourseCollection courseCollection) {
        return courseCollectionMapper.update(courseCollection);
    }

    @Override
    public Integer del(Integer id) {
        return courseCollectionMapper.del(id);
    }

    @Override
    public CourseCollection findById(Integer id) {
        return courseCollectionMapper.findById(id);
    }

    @Override
    public List<CourseCollection> findAll() {
        return courseCollectionMapper.findAll();
    }
}
